package com.zhangjianling.premp.entity.sys;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.annotations.GenericGenerator;

/**
 * 系统日志实体类
 * @author zhangjl
 *
 */
@Entity
@Table(name="sys_log")
@Data
@NoArgsConstructor
@AllArgsConstructor
public class SysLog implements Serializable{
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	@Id
	@GeneratedValue(generator = "system-uuid")
	@GenericGenerator(name = "system-uuid", strategy = "uuid.hex")
	@Column(name = "logid", nullable = false)
	private String logId; //主键
	private String description; //描述
	private String exceptionCode; //异常代码
	private String type;//类型
	private String exceptionDetail; //异常信息
	private String method;//请求方法
	@Column(length=1024)
	private String params;//请求参数
	private String userName;//请求人
	private String createDate;//创建时间
	private String requestIp;//创建ip
}
